import { createRouter, createWebHashHistory } from "vue-router";
import LayOutView from "@/views/LayOutView.vue";

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "layout",
      component: LayOutView,
      children: [
        {
          path: "/manage",
          name: "manage",
          component: () => import("@/views/ManageView.vue"),
        },
        {
          path: "/send",
          name: "send",
          component: () => import("@/views/SendView.vue"),
        },
      ],
    },
  ],
});

export default router;

